package com.plugin.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.plugin.core.model.entity.SysMgrUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 系统管理用户Mapper接口
 * 
 * @author mark
 * @date 2025-07-23
 */
@Mapper
public interface SysMgrUserMapper extends BaseMapper<SysMgrUser> {

    /**
     * 根据用户名查询用户
     */
    @Select("SELECT * FROM sys_mgr_user WHERE 1=1 AND username = #{username} AND del = '0' AND account_status = '0'")
    SysMgrUser selectByUsername(String username);
}